package vn.com.fsoft.business.impl;

import java.util.List;

import vn.com.fsoft.business.IReferenceDataBussiness;
import vn.com.fsoft.model.dao.IReferenceDataDao;
import vn.com.fsoft.model.dao.impl.ReferenceDataDao;
import vn.com.fsoft.model.entities.ReferenceData;

public class ReferenceDataBussiness implements IReferenceDataBussiness{

	@Override
	public List<ReferenceData> lookUpBussiness(String bussinessName,
			String sicCode, int pageSize, int currentPage) {
		IReferenceDataDao ref = new ReferenceDataDao();
		if(bussinessName == null || sicCode == null) {
			return null;
		} else {
			return ref.lookUpBussiness(bussinessName, sicCode, pageSize, currentPage);
		}
	}

	@Override
	public int getTotalPage() {
		IReferenceDataDao rDao = new ReferenceDataDao();
		return rDao.getTotalPage();
	}
	

}
